<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>小飞象-首页</title>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_810097_dnsbccm72pt.css">
    <!-- <link rel="stylesheet" href="css/style.min.css"> -->
    <link rel="stylesheet" href="css/common/reset.css">
    <link rel="stylesheet" href="css/header.css">
    <link rel="stylesheet" href="css/common/nav.css">
    <link rel="stylesheet" href="css/index.css">
    <!-- <script src="js/dataRequest.js"></script> -->
</head>

<body>
    <header>
        <div class="wrapper">
            <div class="clearfix headerBox">
                <h1 class="fl logo">
                    <a href="">小飞象</a>
                </h1>
                <!-- <div class="fl alipayName">支付宝充值账号: <b class="redColor">156****8656</b>开户人: <b class="redColor">陈小窝</b></div> -->
                <div class="fr logOut">退出</div>
                <div class="fr userName"></div>
            </div>
        </div>
    </header>
    <!-- <header id="header"></header> -->
    <div class="mhNav">
        <ul class="navMenuBox">
            <li>
                <a href="index.html" class="active">
                    飞象首页
                </a>
            </li>
            <li class="memberUser">
                <a href="javascript:;">
                    会员中心
                    <!-- <i class="iconfont icon-arrow-up mhArrowIcon"></i>
                    <i class="iconfont icon-arrow-down mhArrowIcon"></i> -->
                </a>
                <ul class="mhColumnSide">
                    <li>
                        <a href="member/basicInfo.html">基本资料</a>
                    </li>
                    <li>
                        <a href="member/storeMage.html">店铺管理</a>
                    </li>
                    <li>
                        <a href="member/readjustNum.html">调整单量</a>
                    </li>
                    <li>
                        <a href="/goodsMage.html">商品管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    计划管理
                    <!-- <i class="iconfont icon-arrow-up mhArrowIcon"></i>
                    <i class="iconfont icon-arrow-down mhArrowIcon"></i> -->
                </a>
                <ul class="mhColumnSide">
                    <li>
                        <a href="plan/newPlan.html">新建计划</a>
                    </li>
                    <li>
                        <a href="plan/planMage.html">计划管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    订单管理
                    <!-- <i class="iconfont icon-arrow-up mhArrowIcon"></i>
                    <i class="iconfont icon-arrow-down mhArrowIcon"></i> -->
                </a>
                <ul class="mhColumnSide">
                    <li>
                        <a href="order/orderMage.html">订单管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    资金管理
                    <!-- <i class="iconfont icon-arrow-up mhArrowIcon"></i>
                    <i class="iconfont icon-arrow-down mhArrowIcon"></i> -->
                </a>
                <ul class="mhColumnSide">
                    <li>
                        <a href="capital/inAccout.html">账号充值</a>
                    </li>
                    <li>
                        <a href="capital/transferMage.html">转账管理</a>
                    </li>
                    <li>
                        <a href="capital/orderMage/dailyTaskDes.html">订单信息</a>
                    </li>
                    <li>
                        <a href="capital/expressForm.html">获取快递底单</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="">在线客服</a>
            </li>
        </ul>
    </div>
    <div class="banner">
        <img src="images/index-b.jpg" alt="">
        <!-- <div class="bannerText">
            <div class="wrapper">
                <div class="textDes">
                    <ul>
                        <li>
                            使用时长(单位天数) <span>365</span>天
                        </li>
                        <li>
                            余额多少(单位元) <span>365</span>元
                        </li>
                        <li>
                            绑定店铺数 <span>365</span>个
                        </li>
                        <li>
                            商家等级 <span>A</span>等
                        </li>
                    </ul>
                </div>
            </div>
        </div> -->
    </div>
    <!-- 展示信息 -->
    <div class="showMsg">
        <div class="wrapper">
            <ul>
                <li>
                    <a href="">
                        <div class="icon">
                            <i class="iconfont icon-pingtaigonggao"></i>
                        </div>
                        <b>平台公告</b>
                    </a>
                </li>
                <li>
                    <a href="">
                        <div class="icon">
                            <i class="iconfont icon-youfubao_guanli_Icon_Icon_"></i>
                        </div>
                        <b>收费标准</b>
                    </a>
                </li>
                <li>
                    <a href="">
                        <div class="icon">
                            <i class="iconfont icon-shubenshoucang"></i>
                        </div>
                        <b>新手教程</b>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.cookie.js"></script>
    <script>
        $(".mhNav .navMenuBox > li > a").click(function (event) {
            if ($(this).siblings('ul').is(':visible')) {
                $(this).siblings('ul').stop(true, true).slideUp();
                $(this).removeClass('active')
            } else {
                $(this).siblings('ul').stop(true, true).slideDown().parents('li').siblings().find('ul').stop(true, true).slideUp();
                $(this).addClass('active').parents('li').siblings().find('a').removeClass('active');
            }
        });
    </script>
    <script>
        var mid = $.cookie('id');
        if (mid == null || mid == "" || !mid || mid == undefined) {
            window.location.href = "/login.html";
        }
        $(".logOut").on("click", function () {
            $.removeCookie('id', '');
            location.href = '/login.html';
        });
        $.ajax({
            type: "get",
            url: "http://47.92.174.143:8888/v1/client/merchants/" + mid,
            dataType: 'json',
            success: function (data) {
                console.log("请求数据为", data.data)
                // 存储总额
                if (data.data == null || !data.data) {
                    layer.msg('数据出错,请重新登录', {
                        icon: 5,//提示的样式
                        time: 6000, //6秒关闭（如果不配置，默认是3秒）//设置后不需要自己写定时关闭了，单位是毫秒
                        end: function () {
                            location.href = '/login.html';
                        }
                    });
                } else {
                    $(".userName").html(data.data.loginId);
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                // console.log(XMLHttpRequest);
                // console.log(textStatus);
                // console.log(errorThrown);
            }
        });
    </script>
</body>

</html>